import { request } from '@/utils/request.js'

export function list(data) {
  return request({
    url: `/documents/list`,
    method: 'get',
	data
  })
}

export function add(data) {
  return request({
    url: '/documents/add',
    method: 'post',
	query:true,
	data
  })
}



export function update(data) {
  return request({
    url: '/documents/update',
    method: 'post',
	query:true,
	data
  })
}

export function remove(id) {
  return request({
    url: `/documents/delete/${id}`,
    method: 'post'
  })
}